import service from '@/utils/request'
// @Tags PointsCoupons
// @Summary 创建pointsCoupons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.PointsCoupons true "创建pointsCoupons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /pointsCoupons/createPointsCoupons [post]
export const createPointsCoupons = (data) => {
  return service({
    url: '/pointsCoupons/createPointsCoupons',
    method: 'post',
    data
  })
}

// @Tags PointsCoupons
// @Summary 删除pointsCoupons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.PointsCoupons true "删除pointsCoupons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /pointsCoupons/deletePointsCoupons [delete]
export const deletePointsCoupons = (params) => {
  return service({
    url: '/pointsCoupons/deletePointsCoupons',
    method: 'delete',
    params
  })
}

// @Tags PointsCoupons
// @Summary 批量删除pointsCoupons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除pointsCoupons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /pointsCoupons/deletePointsCoupons [delete]
export const deletePointsCouponsByIds = (params) => {
  return service({
    url: '/pointsCoupons/deletePointsCouponsByIds',
    method: 'delete',
    params
  })
}

// @Tags PointsCoupons
// @Summary 更新pointsCoupons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.PointsCoupons true "更新pointsCoupons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /pointsCoupons/updatePointsCoupons [put]
export const updatePointsCoupons = (data) => {
  return service({
    url: '/pointsCoupons/updatePointsCoupons',
    method: 'put',
    data
  })
}

// @Tags PointsCoupons
// @Summary 用id查询pointsCoupons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.PointsCoupons true "用id查询pointsCoupons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /pointsCoupons/findPointsCoupons [get]
export const findPointsCoupons = (params) => {
  return service({
    url: '/pointsCoupons/findPointsCoupons',
    method: 'get',
    params
  })
}

// @Tags PointsCoupons
// @Summary 分页获取pointsCoupons表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取pointsCoupons表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /pointsCoupons/getPointsCouponsList [get]
export const getPointsCouponsList = (params) => {
  return service({
    url: '/pointsCoupons/getPointsCouponsList',
    method: 'get',
    params
  })
}

// @Tags PointsCoupons
// @Summary 不需要鉴权的pointsCoupons表接口
// @accept application/json
// @Produce application/json
// @Param data query couponsReq.PointsCouponsSearch true "分页获取pointsCoupons表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /pointsCoupons/getPointsCouponsPublic [get]
export const getPointsCouponsPublic = () => {
  return service({
    url: '/pointsCoupons/getPointsCouponsPublic',
    method: 'get',
  })
}
